# coding:utf-8

import pandas as pd
from sklearn.model_selection import train_test_split

# 摄氏度,销量
# 23,110
# 27,115
data_csv = pd.read_csv("learn_1.csv")


df = pd.DataFrame(data_csv)
print(df)

X = df.iloc[:, : -1]
Y = df.iloc[:, -1]

X_train, X_test, Y_train, Y_test = \
    train_test_split(X, Y, test_size=0.3, random_state=40)

print(X_train)
print(X_test)
